import * as types from '@src/model/actionType';

const globalState = {
  loading: false,
};

function global(state = globalState, action) {
  switch (action.type) {
    case types.loading:
      return { ...state, ...action.payload };
    default:
      return state;
  }
}

export default global;
